Customize Git using aliases for common operations
Increase your productivity and reduce your cognitive load by creating aliases for many common git operations.
The Git snippet collection contains a variety of short tips and tricks for all currently maintained versions of git. It includes most commonly-used commands and covers various use-cases in the form of simplified documentation, complete with multiple examples.
Increase your productivity and reduce your cognitive load by creating aliases for many common git operations.
Git defaults to fast-forward merging when possible. But, what if you want to disable it by default? Let's see how you can do that.
Effortlessly create upstream branches on push by enabling a simple Git config setting.
If you want your team to follow a common format for commit messages, you can set up a commit message template to make it easier.
Did you set up a lot of Git aliases and forgot what they are? List them all with this command.
Learn how to eliminate the annoyance of copying dollar signs ($) along with terminal commands from the web with a simple bash alias.
Tired of manually specifying the remote branch name when pushing? Configure Git to use the current branch name as the default.
Configure user information for Git to associate commits with a user.
Learn how to configure the text editor used by Git for commit messages and other text editing tasks.
Mistyping commands often? Enable Git's autocorrect feature to automatically fix them.
Learn how to open the Git configuration file in the Git text editor, for editing.
If you're working with a team using different operating systems, configuring line endings can help maintain consistency.